package com.punch.order.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punch.common.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 转账信息
 * </p>
 *
 * @author wjj
 * @since 2020-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("transfer_order")
public class TransferOrder extends SuperEntity<TransferOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 结算id
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 类型 0-课程 1-教具
     */
    @TableField("transfer_type")
    private Integer transferType;

    /**
     * 银行账号
     */
    @TableField("bank_account")
    private String bankAccount;

    /**
     * 持卡者姓名
     */
    @TableField("bank_user_name")
    private String bankUserName;

    /**
     * 开户行
     */
    @TableField("bank_open")
    private String bankOpen;

    /**
     * 转账金额
     */
    @TableField("transfer_amount")
    private BigDecimal transferAmount;

    /**
     * 转账流水号
     */
    @TableField("transfer_no")
    private String transferNo;

    /**
     * 转账凭证
     */
    @TableField("voucher_url")
    private String voucherUrl;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
